package cn.appsys.service.back.appinfo;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import cn.appsys.dao.back.appinfo.BackAppinfoMapper;
import cn.appsys.pojo.AppCategory;
import cn.appsys.pojo.AppInfo;
import cn.appsys.pojo.AppVersion;
import cn.appsys.pojo.DataDictionary;

@Service("backAppinfoService")
public class BackAppinfoServiceimpl implements BackAppinfoService {

	
	@Resource
	private BackAppinfoMapper backAppinfoMapper;
	
	@Override
	public List<AppInfo> queryAppInfo(String querySoftwareName,
			Integer queryFlatformId, Integer queryCategoryLevel1,
			Integer queryCategoryLevel2, Integer queryCategoryLevel3,
			Integer from, Integer pageSize) {
		return backAppinfoMapper.queryAppInfo(querySoftwareName, queryFlatformId, queryCategoryLevel1, queryCategoryLevel2, queryCategoryLevel3, from, pageSize);
	}

	@Override
	public int queryTotalCount(String querySoftwareName,
			Integer queryFlatformId, Integer queryCategoryLevel1,
			Integer queryCategoryLevel2, Integer queryCategoryLevel3) {
		return backAppinfoMapper.queryTotalCount(querySoftwareName, queryFlatformId, queryCategoryLevel1, queryCategoryLevel2, queryCategoryLevel3);
	}

	@Override
	public List<AppCategory> queryappCategoryList(Integer categoryId) {
		return backAppinfoMapper.queryappCategoryList(categoryId);
	}

	@Override
	public List<DataDictionary> queryAllFlatFrom(String typeCode) {
		return backAppinfoMapper.queryAllFlatFrom(typeCode);
	}

	@Override
	public AppInfo queryAppcheck(Integer aid) {
		return backAppinfoMapper.queryAppcheck(aid);
	}

	@Override
	public AppVersion queryAppletViewer(Integer vid) {
		return backAppinfoMapper.queryAppletViewer(vid);
	}

	@Override
	public int queryAppUpdate(Integer aid, Integer status) {
		return backAppinfoMapper.queryAppUpdate(aid, status);
	}

}
